package press.xiang.utils;


import org.springframework.beans.BeanUtils;
import press.xiang.entity.User;
import press.xiang.entity.UserVO;

/**
 * 描述:
 */
public class TranUtil {
    public static UserVO tranInfo(User source, String token) {
        UserVO userVO = new UserVO();
        userVO.setToken(token);
        BeanUtils.copyProperties(source,userVO);
        return userVO;
    }
}
